import { createApp } from 'vue'
import './style.scss'
// import './assets/style/mixin.scss'
import App from './App.vue'
import store from './store'
import router from './router'
import directives from "./directives";
import hljsVuePlugin from '@highlightjs/vue-plugin'
import 'highlight.js/styles/androidstudio.css'  //不同的样式官网查找
import 'highlight.js/lib/common'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

import { create , NButton, NDivider, NUpload } from 'naive-ui'
  
  const naive = create({
    components: [NButton,NDivider,NUpload]
  })

  app.use(router).use(store).use(ElementPlus).use(naive).use(directives).use(hljsVuePlugin).mount('#app')
